#pragma  once
#include <functional>
#include <memory>
#include <string>
#include "Message.pb.h"

namespace MY_MQ {
    using ConsumerCallback = std::function<void(const std::string,
const MQ_Protobuf::BasicProperties *bp, const std::string)>;
struct Client_Consumer
{
    using self_ptr = std::shared_ptr<Client_Consumer>;
    std::string _ID;
    std::string _QueueName;
    bool _AutoAck;
    ConsumerCallback _Callback;
    Client_Consumer(const std::string & ID,const std::string& QueueName,bool Ack,const ConsumerCallback& cb)
    :_ID(ID),_QueueName(QueueName),_AutoAck(Ack),_Callback(cb)
    {

    }
};
};